//
//  CustomerServiceHelpVC.m
//  CleanerAir_Project
//
//  Created by 付亚杰 on 16/7/4.
//  Copyright © 2016年 Beijing Colin El Internet. All rights reserved.
//

#import "CustomerServiceHelpVC.h"

@interface CustomerServiceHelpVC ()<UIWebViewDelegate>

@property (weak, nonatomic) IBOutlet UIWebView *myWebView;


@end

@implementation CustomerServiceHelpVC

- (void)viewDidLoad {
    [super viewDidLoad];
    
    if (self.urlStr == nil || [self.urlStr isEqualToString:@""]) {
        [self.navigationController popViewControllerAnimated:YES];
    }
    
    self.myWebView.delegate = self;
    
    [self.myWebView setScalesPageToFit:YES];//自动缩放以适应屏幕

    
    //加载网页的方式
    //1.创建并加载远程网页
    NSURL *url = [NSURL URLWithString:self.urlStr];
    [self.myWebView loadRequest:[NSURLRequest requestWithURL:url]];
    // Do any additional setup after loading the view from its nib.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
